const KEY = 'CART_DATA'
const storage = {
  get() {
    return wx.getStorageSync(KEY) || []
  },
  set(list) {
    wx.setStorageSync(KEY, list)
  }
}
module.exports = storage